package wqh.dao;



import java.util.List;

/**
 * Created by TsinghuaWoo on 2016/12/29.
 */
public interface Dao<T> {

    public void save(T entity);

    public void update(T entity);

    public void clear();

    public void flush();

    public void delete(T entity);

    public void deleteAll();

    public List<T> findAll();

    public T findById(Long id);


}
